<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/tags.jspf" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<template:header context="${context}" title="My account - Redmine"/>
</head>
<body class="controller-my action-account">
	<template:content context="${context}" session="${session}" sidebar="account">
		<div class="contextual">
			<a href="${context}/my/password" class="icon icon-passwd">Change password</a>
		</div>
		<h2>My account</h2>
		<ui:errors path="account.*"/>
		<form:form commandName="account" accept-charset="UTF-8" action="${context}/my/account" class="edit_user" id="my_account_form" method="post">
			<div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /><input name="authenticity_token" type="hidden" value="hPGUHzbTPvEayaQgc7n3xUtixVjyoff3xA69aUQlkl8=" /></div>
			<div class="splitcontentleft">
				<fieldset class="box tabular">
					<legend>Information</legend>
					<p><label for="user_firstname">First name<span class="required"> *</span></label><form:input path="user.firstName" size="30"/></p>
					<p><label for="user_lastname">Last name<span class="required"> *</span></label><form:input path="user.lastName" size="30"/></p>
					<p><label for="user_mail">Email<span class="required"> *</span></label><form:input path="user.email" size="30"/></p>
					<p><label for="user_language">Language</label><form:select path="user.language" items="${language}"/></p>
				</fieldset>
				<input name="commit" type="submit" value="Save" />
			</div>

			<div class="splitcontentright">
				<fieldset class="box">
					<legend>Email notifications</legend>
					<%@ include file="/WEB-INF/views/user/mail_notifications.jsp" %>
				</fieldset>
			
				<fieldset class="box tabular">
					<legend>Preferences</legend>
					<%@ include file="/WEB-INF/views/user/preferences.jsp" %>
				</fieldset>
			</div>
		</form:form>
        <div style="clear:both;"></div>
	</template:content>
</body>
</html>
